package com.zjj.crypt.config;

import com.zjj.crypt.advice.DecryptRequestBodyAdvice;
import com.zjj.crypt.advice.EncryptResponseBodyAdvice;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zjj_admin
 */
@Configuration
public class EncryptDecryptConfiguration {

    @Bean
    public DecryptRequestBodyAdvice decryptRequestBodyAdvice() {
        return new DecryptRequestBodyAdvice();
    }

    @Bean
    public EncryptResponseBodyAdvice encryptResponseBodyAdvice() {
        return new EncryptResponseBodyAdvice();
    }
}
